<%--
  Created by IntelliJ IDEA.
  User: 86183
  Date: 2019/9/12
  Time: 10:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath(); %>
<jsp:include page="/manage/inc/header"></jsp:include>
<link rel="stylesheet" type="text/css" href="<%=path%>/Manage/static/css/shou.css"/>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="main-wrap">

    <div class="crumb-wrap">

        <div class="crumb-list"><i class="icon-font"></i><a href="${pageContext.request.contextPath}/manage">首页</a><span class="crumb-step">&gt;</span><a href="<%=path%>/manage/show/log">日志管理</a><span class="crumb-step">&gt;</span>    &nbsp;&nbsp;&nbsp;&nbsp;             <a class="yitingfeng" style="color: #ff231e">(已停封日志管理)</a></div>
    </div>
    <div class="search-wrap">
        <div class="search-content">
                <table class="search-tab">
                    <th width="70">搜索:</th>
                    <td><input class="common-text" placeholder="搜索" name="keywords"  id="matter" type="text"></td>
                    <td><input class="btn btn-primary btn2" name="sub" value="查询" id="seek" type="button"></td>
                </table>
        </div>
    </div>
    <div class="result-wrap">
        <form name="myform" id="myform" method="post">
            <div class="result-title">
            </div>
            <div class="result-content" id="show">


            </div>
        </form>
    </div>
</div>
<!--/main-->
</div>
<jsp:include page="/manage/inc/footer"></jsp:include>
<script>
    $(function () {

        initData(1);

    })
    $(".yitingfeng").click(function () {
        $(this).css("color", "#c31617");
        var action ="${pageContext.request.contextPath}/manage/ajaxJsp/findStopSeal"
         var pageNum= 1;
        $.post(action,{pageNum:pageNum},function (mes) {
            $("#show").html(mes);
        })
    })

    $("#seek").click(function () {
        var action ="${pageContext.request.contextPath}/manage/ajaxJsp/wordSearch";
        var title =$("#matter").val();
        if (title!=null)
        {
            $.post(action,{title:title},function (mes) {
                $("#show").html(mes);
            })

        }
        else {
            return false;
        }

    })



    function initData(pageNum)
    {
        var pageNum = {pageNum: pageNum};
        $.post("${pageContext.request.contextPath}/manage/ajaxJsp/findDaily", pageNum, function (mes) {
                $("#show").html(mes);
            }
        );

    }

</script>